﻿using FluentNHibernate.Mapping;
using IapService.Entity;

namespace IapService.Mappings
{
    public class ClientInstanceMap : ClassMap<ClientInstance>
    {
        public ClientInstanceMap()
        {
            Not.LazyLoad();

            Id(x => x.Id);
            Map(x => x.clientId);
            
            References(x => x.Instance, "instanceId").Cascade.Delete();
        }
    }
}